<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/BSP/dev_touch.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_4ca18d753a70f6eada20fde478bd3fc8.html">BSP</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">dev_touch.h</div></div>
</div><!--header-->
<div class="contents">
<a href="dev__touch_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#ifndef __DEV_TOUCH_H__</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#define __DEV_TOUCH_H__</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;SWM341.h&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#include &quot;<a class="code" href="version_8h.html">version.h</a>&quot;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="comment"> * Public Define</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#if (SWM34S_LCM_PCBV == SWM34SCE_PIN48_A2)</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#aba49717405e9709f53a7e340653eaa41">   32</a></span><span class="preprocessor">    #define TP_GPIO_RST         GPIOM</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a63b6be9409fb6bdacb3e661c2114077f">   33</a></span><span class="preprocessor">    #define TP_PIN_RST          PIN4</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a886e6b681d04e833135384b906c35855">   35</a></span><span class="preprocessor">    #define TP_GPIO_INT         GPIOM</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a0f516787a212a8060cd70b0d03ae1b13">   36</a></span><span class="preprocessor">    #define TP_PIN_INT          PIN5</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a479dbee3a96123ab3deb85133104cbab">   37</a></span><span class="preprocessor">    #define TP_INT_IRQn         GPIOM_IRQn</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#af512db53f2c4ab4378e1a2e0bdd768fb">   38</a></span><span class="preprocessor">    #define TP_INT_Handler      GPIOM_Handler</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a1e0ab863f65661b4309af875ec9e6d0d">   40</a></span><span class="preprocessor">    #define TP_GPIO_SCL         GPIOM</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#adfe2cb63b872519329bf1ad71284c099">   41</a></span><span class="preprocessor">    #define TP_PIN_SCL          PIN2</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a2430e500da89d3deb28fe4ba6d85cbeb">   43</a></span><span class="preprocessor">    #define TP_GPIO_SDA         GPIOM</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#aef519ccca134ad2b0416daacf1fe0696">   44</a></span><span class="preprocessor">    #define TP_PIN_SDA          PIN3</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>    <span class="comment">/* 该端口无法复用为硬件 I2C, 只能用软件模拟, 故以下端口宏无实际作用, 仅为了应对编译时可能出现的错误 */</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a127b5985433ce0cd956eb76e459c3096">   47</a></span><span class="preprocessor">    #define TP_PORT_SCL         PORTM</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a872ce1f4179793adbfbf8c77393cf82e">   48</a></span><span class="preprocessor">    #define TP_PIN_SCL_FUN      PORTA_PIN1_I2C0_SCL</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a427759b4468e32f4f30e39addcadb5bd">   50</a></span><span class="preprocessor">    #define TP_PORT_SDA         PORTM</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#aa3c81321ed13a962bfbb9c6e1dd0c424">   51</a></span><span class="preprocessor">    #define TP_PIN_SDA_FUN      PORTA_PIN0_I2C0_SDA</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a46828f8d24ffd6580f185ce41bd262eb">   53</a></span><span class="preprocessor">    #define TP_I2C_X            I2C0</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="preprocessor">#elif (SWM34S_LCM_PCBV == SWM34SRE_PIN64_A001)</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="preprocessor">    #define TP_GPIO_RST         GPIOB</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span><span class="preprocessor">    #define TP_PIN_RST          PIN11</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span><span class="preprocessor">    #define TP_GPIO_INT         GPIOD</span></div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span><span class="preprocessor">    #define TP_PIN_INT          PIN0</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span><span class="preprocessor">    #define TP_INT_IRQn         GPIOD_IRQn</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span><span class="preprocessor">    #define TP_INT_Handler      GPIOD_Handler</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span><span class="preprocessor">    #define TP_GPIO_SCL         GPIOC</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span><span class="preprocessor">    #define TP_PORT_SCL         PORTC</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="preprocessor">    #define TP_PIN_SCL          PIN5</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><span class="preprocessor">    #define TP_PIN_SCL_FUN      PORTC_PIN5_I2C1_SCL</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span><span class="preprocessor">    #define TP_GPIO_SDA         GPIOC</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span><span class="preprocessor">    #define TP_PORT_SDA         PORTC</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span><span class="preprocessor">    #define TP_PIN_SDA          PIN4</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span><span class="preprocessor">    #define TP_PIN_SDA_FUN      PORTC_PIN4_I2C1_SDA</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span><span class="preprocessor">    #define TP_I2C_X            I2C1</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span><span class="preprocessor">#else </span><span class="comment">/* SWM34SVET6_Pin100 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span><span class="preprocessor">    #define TP_GPIO_RST         GPIOA</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span><span class="preprocessor">    #define TP_PIN_RST          PIN5</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span><span class="preprocessor">    #define TP_GPIO_INT         GPIOD</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><span class="preprocessor">    #define TP_PIN_INT          PIN0</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span><span class="preprocessor">    #define TP_INT_IRQn         GPIOD_IRQn</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span><span class="preprocessor">    #define TP_INT_Handler      GPIOD_Handler</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span><span class="preprocessor">    #if (SWM34S_LCM_PCBV == SWM34SVE_PIN100_A001)</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span><span class="preprocessor">    #define TP_GPIO_SCL         GPIOA</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="preprocessor">    #define TP_PORT_SCL         PORTA</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span><span class="preprocessor">    #define TP_PIN_SCL          PIN7</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span><span class="preprocessor">    #define TP_PIN_SCL_FUN      PORTA_PIN7_I2C1_SCL</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span><span class="preprocessor">    #define TP_GPIO_SDA         GPIOA</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span><span class="preprocessor">    #define TP_PORT_SDA         PORTA</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span><span class="preprocessor">    #define TP_PIN_SDA          PIN6</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span><span class="preprocessor">    #define TP_PIN_SDA_FUN      PORTA_PIN6_I2C1_SDA</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span><span class="preprocessor">    #define TP_I2C_X            I2C1</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span><span class="preprocessor">    #elif (SWM34S_LCM_PCBV == SWM34SVE_PIN100_A002)</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span><span class="preprocessor">    #define TP_GPIO_SCL         GPIOA</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span><span class="preprocessor">    #define TP_PORT_SCL         PORTA</span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span><span class="preprocessor">    #define TP_PIN_SCL          PIN1</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span><span class="preprocessor">    #define TP_PIN_SCL_FUN      PORTA_PIN1_I2C0_SCL</span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span><span class="preprocessor">    #define TP_GPIO_SDA         GPIOA</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span><span class="preprocessor">    #define TP_PORT_SDA         PORTA</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span><span class="preprocessor">    #define TP_PIN_SDA          PIN0</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span><span class="preprocessor">    #define TP_PIN_SDA_FUN      PORTA_PIN0_I2C0_SDA</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span><span class="preprocessor">    #define TP_I2C_X            I2C0</span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span><span class="preprocessor">    #endif</span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span><span class="comment"> * Public Typedef</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71">  119</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>{</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71a693480a7cbe7d8d0a9d07a2d66ee9da2">  121</a></span>    <a class="code hl_enumvalue" href="dev__touch_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71a693480a7cbe7d8d0a9d07a2d66ee9da2">TP_EVENT_RELEASED</a> = 0, </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>    <a class="code hl_enumvalue" href="dev__touch_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71a0b306b969e605870813a875062f36d2a">TP_EVENT_PRESSED</a>       </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71a0b306b969e605870813a875062f36d2a">  123</a></span>} <a class="code hl_enumeration" href="dev__touch_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71">tp_event_t</a>;</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="structtp__data__t.html">  126</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>{</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="structtp__data__t.html#a4dde988b1b2adba65ae3efa69f65d960">  128</a></span>    uint16_t <a class="code hl_variable" href="structtp__data__t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a>;         </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="structtp__data__t.html#ab0580f504a7428539be299fa71565f30">  129</a></span>    uint16_t <a class="code hl_variable" href="structtp__data__t.html#ab0580f504a7428539be299fa71565f30">y</a>;         </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="structtp__data__t.html#a5202f2d226d6bf6ec85c52304098acd2">  130</a></span>    <a class="code hl_enumeration" href="_t_p___tango___c32_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71">tp_event_t</a> <a class="code hl_variable" href="structtp__data__t.html#a5202f2d226d6bf6ec85c52304098acd2">event</a>;   </div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="structtp__data__t.html#a09a2a45f731b02946ff6d3cd15c1a476">  131</a></span>    uint8_t <a class="code hl_variable" href="structtp__data__t.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>;      </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="structtp__data__t.html#ad46edbc9fffadbdca72080b49ea63ac8">  132</a></span>    uint8_t <a class="code hl_variable" href="structtp__data__t.html#ad46edbc9fffadbdca72080b49ea63ac8">track_id</a>;   </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>} <a class="code hl_struct" href="structtp__data__t.html">tp_data_t</a>;</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973">  136</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>{</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973a5b57370396b7de414e4132f4fadc8885">  138</a></span>    <a class="code hl_enumvalue" href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973a5b57370396b7de414e4132f4fadc8885">TP_TYPE_CT</a> = 0, </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>    <a class="code hl_enumvalue" href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973a811906f8dba08a6d4cbf0c61dcddf80f">TP_TYPE_RT</a>      </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973a811906f8dba08a6d4cbf0c61dcddf80f">  140</a></span>} <a class="code hl_enumeration" href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973">tp_type_t</a>;</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77e">  143</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>{</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77ea341fdaa08fa997570c0b89e6e4bf5068">  145</a></span>    <a class="code hl_enumvalue" href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77ea341fdaa08fa997570c0b89e6e4bf5068">TP_MODE_POLLING_RDONLY</a> = 0, </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>    <a class="code hl_enumvalue" href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77ea03d9705d179305c0dc4c1ef0fce65b83">TP_MODE_INT_RX</a>              </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77ea03d9705d179305c0dc4c1ef0fce65b83">  147</a></span>} <a class="code hl_enumeration" href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77e">tp_mode_t</a>;</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="structdev__tp__t.html">  150</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>{</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="structdev__tp__t.html#ade186a1e352f443f71fa39c14af5b674">  152</a></span>    <a class="code hl_struct" href="structtp__data__t.html">tp_data_t</a> *<a class="code hl_variable" href="structdev__tp__t.html#ade186a1e352f443f71fa39c14af5b674">point</a>;          </div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="structdev__tp__t.html#a7b6262bfcb571b59fb3f322165d24a05">  153</a></span>    <span class="keyword">const</span> uint8_t <a class="code hl_variable" href="structdev__tp__t.html#a7b6262bfcb571b59fb3f322165d24a05">points_num</a>;  </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="structdev__tp__t.html#a667e6ecfded590d72b21fcb5a0e5b260">  154</a></span>    <span class="keyword">const</span> <a class="code hl_enumeration" href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973">tp_type_t</a> <a class="code hl_variable" href="structdev__tp__t.html#a667e6ecfded590d72b21fcb5a0e5b260">type</a>;      </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="structdev__tp__t.html#af3031ab65710d467a459643a51e94949">  155</a></span>    <span class="keyword">const</span> <a class="code hl_enumeration" href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77e">tp_mode_t</a> <a class="code hl_variable" href="structdev__tp__t.html#af3031ab65710d467a459643a51e94949">mode</a>;      </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="structdev__tp__t.html#ad0f91d3c2b3f1fef36a3530341576d6b">  158</a></span>    uint8_t (*<span class="keyword">const</span> init_cb)(void);</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="structdev__tp__t.html#a4f710901c7b478810ab1e3d1b7332989">  161</a></span>    uint8_t (*<span class="keyword">const</span> read_cb)(<a class="code hl_struct" href="structtp__data__t.html">tp_data_t</a> *p_data, uint8_t points);</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>    </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="structdev__tp__t.html#a90323c876c50bbbc15dce886974a463f">  164</a></span>    void (*<span class="keyword">const</span> close_cb)(void);</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>} <a class="code hl_struct" href="structdev__tp__t.html">dev_tp_t</a>;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span><span class="comment"> * Public Variable</span></div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span><span class="keyword">extern</span> <a class="code hl_struct" href="structdev__tp__t.html">dev_tp_t</a> <a class="code hl_variable" href="dev__touch_8h.html#a84c114ba14f4f7ca7c2258db06b98d87">Dev_TP</a>;</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span><span class="comment"> * Public Function</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span>uint8_t <a class="code hl_function" href="dev__touch_8h.html#ad79fb3af238f076a0aa90e32a43ab77e">touch_init</a>(<a class="code hl_struct" href="structdev__tp__t.html">dev_tp_t</a> *dev);</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span><span class="keywordtype">void</span> <a class="code hl_function" href="dev__touch_8h.html#a4155438389d8b8b802f7f20534056bf0">touch_handler</a>(<a class="code hl_struct" href="structdev__tp__t.html">dev_tp_t</a> *dev);</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span> </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span><span class="preprocessor">#endif </span><span class="comment">//__DEV_TOUCH_H__</span></div>
<div class="ttc" id="a_t_p___tango___c32_8h_html_a9fffde3171a44771a6e9f8f0cbb52d71"><div class="ttname"><a href="_t_p___tango___c32_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71">tp_event_t</a></div><div class="ttdeci">tp_event_t</div><div class="ttdoc">触摸事件枚举</div><div class="ttdef"><b>Definition:</b> <a href="_t_p___tango___c32_8h_source.html#l00033">TP_Tango_C32.h:34</a></div></div>
<div class="ttc" id="adev__touch_8h_html_a4155438389d8b8b802f7f20534056bf0"><div class="ttname"><a href="dev__touch_8h.html#a4155438389d8b8b802f7f20534056bf0">touch_handler</a></div><div class="ttdeci">void touch_handler(dev_tp_t *dev)</div><div class="ttdoc">触摸事件处理</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8c_source.html#l00174">dev_touch.c:174</a></div></div>
<div class="ttc" id="adev__touch_8h_html_a4d8890ebc8ff6e7826af41519043e77e"><div class="ttname"><a href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77e">tp_mode_t</a></div><div class="ttdeci">tp_mode_t</div><div class="ttdoc">触摸屏工作模式</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00143">dev_touch.h:144</a></div></div>
<div class="ttc" id="adev__touch_8h_html_a4d8890ebc8ff6e7826af41519043e77ea03d9705d179305c0dc4c1ef0fce65b83"><div class="ttname"><a href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77ea03d9705d179305c0dc4c1ef0fce65b83">TP_MODE_INT_RX</a></div><div class="ttdeci">@ TP_MODE_INT_RX</div><div class="ttdoc">中断接收模式(INT触发)</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00147">dev_touch.h:146</a></div></div>
<div class="ttc" id="adev__touch_8h_html_a4d8890ebc8ff6e7826af41519043e77ea341fdaa08fa997570c0b89e6e4bf5068"><div class="ttname"><a href="dev__touch_8h.html#a4d8890ebc8ff6e7826af41519043e77ea341fdaa08fa997570c0b89e6e4bf5068">TP_MODE_POLLING_RDONLY</a></div><div class="ttdeci">@ TP_MODE_POLLING_RDONLY</div><div class="ttdoc">轮询模式</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00145">dev_touch.h:145</a></div></div>
<div class="ttc" id="adev__touch_8h_html_a84c114ba14f4f7ca7c2258db06b98d87"><div class="ttname"><a href="dev__touch_8h.html#a84c114ba14f4f7ca7c2258db06b98d87">Dev_TP</a></div><div class="ttdeci">dev_tp_t Dev_TP</div><div class="ttdoc">触摸屏设备</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8c_source.html#l00073">dev_touch.c:73</a></div></div>
<div class="ttc" id="adev__touch_8h_html_a9fffde3171a44771a6e9f8f0cbb52d71"><div class="ttname"><a href="dev__touch_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71">tp_event_t</a></div><div class="ttdeci">tp_event_t</div><div class="ttdoc">触摸事件枚举</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00119">dev_touch.h:120</a></div></div>
<div class="ttc" id="adev__touch_8h_html_a9fffde3171a44771a6e9f8f0cbb52d71a0b306b969e605870813a875062f36d2a"><div class="ttname"><a href="dev__touch_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71a0b306b969e605870813a875062f36d2a">TP_EVENT_PRESSED</a></div><div class="ttdeci">@ TP_EVENT_PRESSED</div><div class="ttdoc">触屏按下</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00123">dev_touch.h:122</a></div></div>
<div class="ttc" id="adev__touch_8h_html_a9fffde3171a44771a6e9f8f0cbb52d71a693480a7cbe7d8d0a9d07a2d66ee9da2"><div class="ttname"><a href="dev__touch_8h.html#a9fffde3171a44771a6e9f8f0cbb52d71a693480a7cbe7d8d0a9d07a2d66ee9da2">TP_EVENT_RELEASED</a></div><div class="ttdeci">@ TP_EVENT_RELEASED</div><div class="ttdoc">触屏释放</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00121">dev_touch.h:121</a></div></div>
<div class="ttc" id="adev__touch_8h_html_ab82e9fc0994f9cf732d62c6e02271973"><div class="ttname"><a href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973">tp_type_t</a></div><div class="ttdeci">tp_type_t</div><div class="ttdoc">触摸屏种类枚举</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00136">dev_touch.h:137</a></div></div>
<div class="ttc" id="adev__touch_8h_html_ab82e9fc0994f9cf732d62c6e02271973a5b57370396b7de414e4132f4fadc8885"><div class="ttname"><a href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973a5b57370396b7de414e4132f4fadc8885">TP_TYPE_CT</a></div><div class="ttdeci">@ TP_TYPE_CT</div><div class="ttdoc">电容式触摸屏</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00138">dev_touch.h:138</a></div></div>
<div class="ttc" id="adev__touch_8h_html_ab82e9fc0994f9cf732d62c6e02271973a811906f8dba08a6d4cbf0c61dcddf80f"><div class="ttname"><a href="dev__touch_8h.html#ab82e9fc0994f9cf732d62c6e02271973a811906f8dba08a6d4cbf0c61dcddf80f">TP_TYPE_RT</a></div><div class="ttdeci">@ TP_TYPE_RT</div><div class="ttdoc">电阻式触摸屏</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00140">dev_touch.h:139</a></div></div>
<div class="ttc" id="adev__touch_8h_html_ad79fb3af238f076a0aa90e32a43ab77e"><div class="ttname"><a href="dev__touch_8h.html#ad79fb3af238f076a0aa90e32a43ab77e">touch_init</a></div><div class="ttdeci">uint8_t touch_init(dev_tp_t *dev)</div><div class="ttdoc">初始化触摸设备驱动</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8c_source.html#l00140">dev_touch.c:140</a></div></div>
<div class="ttc" id="astructdev__tp__t_html"><div class="ttname"><a href="structdev__tp__t.html">dev_tp_t</a></div><div class="ttdoc">触摸屏设备类</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00150">dev_touch.h:151</a></div></div>
<div class="ttc" id="astructdev__tp__t_html_a667e6ecfded590d72b21fcb5a0e5b260"><div class="ttname"><a href="structdev__tp__t.html#a667e6ecfded590d72b21fcb5a0e5b260">dev_tp_t::type</a></div><div class="ttdeci">const tp_type_t type</div><div class="ttdoc">触摸设备类型</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00154">dev_touch.h:154</a></div></div>
<div class="ttc" id="astructdev__tp__t_html_a7b6262bfcb571b59fb3f322165d24a05"><div class="ttname"><a href="structdev__tp__t.html#a7b6262bfcb571b59fb3f322165d24a05">dev_tp_t::points_num</a></div><div class="ttdeci">const uint8_t points_num</div><div class="ttdoc">触摸点上限</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00153">dev_touch.h:153</a></div></div>
<div class="ttc" id="astructdev__tp__t_html_ade186a1e352f443f71fa39c14af5b674"><div class="ttname"><a href="structdev__tp__t.html#ade186a1e352f443f71fa39c14af5b674">dev_tp_t::point</a></div><div class="ttdeci">tp_data_t * point</div><div class="ttdoc">触摸点数据</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00152">dev_touch.h:152</a></div></div>
<div class="ttc" id="astructdev__tp__t_html_af3031ab65710d467a459643a51e94949"><div class="ttname"><a href="structdev__tp__t.html#af3031ab65710d467a459643a51e94949">dev_tp_t::mode</a></div><div class="ttdeci">const tp_mode_t mode</div><div class="ttdoc">触摸设备工作模式</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00155">dev_touch.h:155</a></div></div>
<div class="ttc" id="astructtp__data__t_html"><div class="ttname"><a href="structtp__data__t.html">tp_data_t</a></div><div class="ttdoc">触摸数据结构体</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00126">dev_touch.h:127</a></div></div>
<div class="ttc" id="astructtp__data__t_html_a09a2a45f731b02946ff6d3cd15c1a476"><div class="ttname"><a href="structtp__data__t.html#a09a2a45f731b02946ff6d3cd15c1a476">tp_data_t::width</a></div><div class="ttdeci">uint8_t width</div><div class="ttdoc">触摸点的宽度大小(Reserve)</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00131">dev_touch.h:131</a></div></div>
<div class="ttc" id="astructtp__data__t_html_a4dde988b1b2adba65ae3efa69f65d960"><div class="ttname"><a href="structtp__data__t.html#a4dde988b1b2adba65ae3efa69f65d960">tp_data_t::x</a></div><div class="ttdeci">uint16_t x</div><div class="ttdoc">触摸点 X 轴坐标</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00128">dev_touch.h:128</a></div></div>
<div class="ttc" id="astructtp__data__t_html_a5202f2d226d6bf6ec85c52304098acd2"><div class="ttname"><a href="structtp__data__t.html#a5202f2d226d6bf6ec85c52304098acd2">tp_data_t::event</a></div><div class="ttdeci">tp_event_t event</div><div class="ttdoc">触摸事件(抬起/按下/移动等等)</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00130">dev_touch.h:130</a></div></div>
<div class="ttc" id="astructtp__data__t_html_ab0580f504a7428539be299fa71565f30"><div class="ttname"><a href="structtp__data__t.html#ab0580f504a7428539be299fa71565f30">tp_data_t::y</a></div><div class="ttdeci">uint16_t y</div><div class="ttdoc">触摸点 Y 轴坐标</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00129">dev_touch.h:129</a></div></div>
<div class="ttc" id="astructtp__data__t_html_ad46edbc9fffadbdca72080b49ea63ac8"><div class="ttname"><a href="structtp__data__t.html#ad46edbc9fffadbdca72080b49ea63ac8">tp_data_t::track_id</a></div><div class="ttdeci">uint8_t track_id</div><div class="ttdoc">每个触摸点的触摸轨迹(Reserve)</div><div class="ttdef"><b>Definition:</b> <a href="dev__touch_8h_source.html#l00132">dev_touch.h:132</a></div></div>
<div class="ttc" id="aversion_8h_html"><div class="ttname"><a href="version_8h.html">version.h</a></div><div class="ttdoc">版本/目标控制</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
